package com.work.cos.domain.entity.sys;

import java.io.Serializable;
import java.util.Set;

public class SysRoleEntity implements Serializable{
	
	/**
	 * UID
	 */
	private static final long serialVersionUID = 6710797123594230050L;



	public SysRoleEntity()
    {

    }
	
    private Long id;
    private String roleName;
    private String roleDescription;
    private int roleType;
	private Set<SysPermissionEntity> permissions;
	
	public Long getId() {
		return id;
	}



	public void setId(Long id) {
		this.id = id;
	}



	public String getRoleName() {
		return roleName;
	}



	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}



	public String getRoleDescription() {
		return roleDescription;
	}



	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}



	public int getRoleType() {
		return roleType;
	}



	public void setRoleType(int roleType) {
		this.roleType = roleType;
	}



	public Set<SysPermissionEntity> getPermissions() {
		return permissions;
	}



	public void setPermissions(Set<SysPermissionEntity> permissions) {
		this.permissions = permissions;
	}
	
	/**
     * 用户类别
     */
    public enum COM_USER_TYPE
    {
    	MEMBER(0),
        VIP(1),
        All(9);

        private int code;

        private COM_USER_TYPE(int _code)
        {
            this.code = _code;
        }

        public int getCode()
        {
            return code;
        }

    }
}
